export class ErrorCode {

    public static readonly ERR_Success = 0;

    // 1-11004 是SocketError请看SocketError定义
    //-----------------------------------
    // 100000-109999是Core层的错误

    // 110000以下的错误请看ErrorCore.cs

    // 这里配置逻辑层的错误码
    // 110000 - 200000是抛异常的错误
    // 200001以上不抛异常

    public static readonly ERR_NetWorkError = 200002; //网络错误

    public static readonly ERR_LoginInfoIsNull = 200003; //登录信息错误

    public static readonly ERR_RequestRepeatedly = 200008; //反复多次请求

    public static readonly ERR_TokenError = 200009; //令牌Token错误

    public static readonly ERR_RoleNameIsNull = 200010; //游戏角色名称为空

    public static readonly ERR_RoleNameSame = 200011; //游戏角色名同名

    public static readonly ERR_RoleNotExist = 200012; //游戏角色不存在

    public static readonly ERR_ConnectGateKeyError = 200013; //连接Gate的令牌错误

    public static readonly ERR_OtherAccountLogin = 200016; //顶号登录

    public static readonly ERR_SessionPlayerError = 200017; //顶号登录

    public static readonly ERR_NonePlayerError = 200018;

    public static readonly ERR_PlayerSessionError = 200019;

    public static readonly ERR_ReEnterGameError = 200020;

    public static readonly ERR_ReEnterGameError2 = 200021;

    public static readonly ERR_EnterGameError = 200022;
    
    public static readonly ERR_SessionStateError = 200023;

}